<div class="form">
<?php echo CHtml::beginForm(); ?>

<div class="row">
<?php echo CHtml::label('Some text', 'some_text'); ?>
<?php echo CHtml::textField('some_text', date('H:i:s')); ?>
<?php echo CHtml::textField('dd','Hello everyone');?>
</div>
				<div class="row">
				
					<?php //echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50,'style'=>'height:350px;')); ?>

						<div class="row">
						<!--style给定宽度可以影响编辑器的最终宽度-->
						<script type="text/plain" id="myEditor" name="ContactForm[body]" style="width:100%">

						</script>

					</div>
				</div>
				
				<?php 
	$this->widget('ext.editor.ueditor.ueditorWidget',array(
			'id'=>'myEditor',
			'initialContent' => '<span style="color:#ccc">欢迎使用ueditor</span>',
			'initialStyle' => 'body{margin:8px;font-family:"宋体";font-size:16px;}',
			'elementPathEnabled' => true,
			'minFrameHeight' => 200,
//			'autoClearinitialContent' => true,
			'imagePath' => '/',
			'textarea' => 'content',

			'autoHeightEnabled' => true,
			'toolbars'=>array(array('Undo','Redo','|','ForeColor','BackColor', 'Bold','Italic','Underline','JustifyLeft','JustifyCenter','JustifyRight')),
	));
?>
<?php
echo CHtml::ajaxSubmitButton(
	'Submit request',
	array('site/test2'),
	array(
		'update'=>'#req_res02',
	)
);
?>
<input type="submit" value="Submit" />
<?php echo CHtml::endForm(); ?>
</div><!-- form -->

<div id="req_res02">...</div>
